package P4.T02;

public class MyMath {
    public static int fact(int n) throws NeqIntegerException {
        if(n<0)throw new NeqIntegerException(n);
        int r=1;
        for(int i=1;i<=n;i++){
            r*=i;
        }
        return r;
    }


}
